package com.woniuxy.company5.service;


import com.woniuxy.company5.entity.UserPermission;

import com.woniuxy.company5.vo.TreeNode;
import com.woniuxy.company5.vo.UserPermissionVo;


import java.util.List;

public interface UserPermissionService {
    List<String> selectByAccount(String account);
    //    查询所有权限
    List<TreeNode> getPermissionByParentId(Integer fatherId);

    List<Integer> getPermissionByRole(Integer id);

    int deleteByPrimaryKey(Long id);

    int insert(UserPermission record);

    int insertSelective(UserPermission record);

    UserPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserPermission record);

    int updateByPrimaryKey(UserPermission record);

    List<UserPermissionVo> selectMenu(Integer fatherId);

}
